package com.lanou3g.ptp.vo;

import com.lanou3g.ptp.entity.Sign;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SignCondition {
    private Long studentId;
    private Long taskId;
    private Date startTime;//包含
    private Date endTime;//不包含

    public SignCondition(Sign sign) {
        this.studentId = sign.getStudentId();
        this.taskId = sign.getTaskId();
    }

    public SignCondition(Long taskId, Long studentId) {
        this.taskId = taskId;
        this.studentId = studentId;
    }
}
